import instance from 'utils/request';

export function getListApi(params: any) {
  return instance.get('/faq/filter/', { params });
}
export function getArtClassListApi() {
  return instance.get('/faq/artclass/');
}
export function updateStatusApi(id: number|string,body: any) {
  return instance.patch(`/faq/status/${id}/`, {status:!body.status});
}
export function getTabsApi(){
  return instance.get('/faq/tag/');
}
export function createFAQApi(params:any) {
    return instance.post('/faq/create/', params);

}
export function putFAQApi(body:any) {
  return instance.put(`/faq/update/`, body);
}
